﻿/**********************************天使物流*******************************************
* 功能描述:合同管理-货主合同
* 作者:石锦涛
* 时间:2022-01-07
* 
**********************************天使物流*******************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShiProject.Models.Common;

namespace TianShiProject.Models.Contract.NewOwnerContracts
{
    public interface INewOwnerAppRepository
    {
        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
         Task<PageResponse<NewOwnerContractDtos>> GetNewOwners(string telet,string danwei,string principal,string operators,string dtime,int? state, int pageindex=1,int pagesize=5);
        /// <summary>
        /// 删除
        /// </summary>
        /// <returns></returns>
        Task<PageResponse<NewOwnerContract>> DeletePageDelet(int Id);

        /// <summary>
        /// 修改数据
        /// </summary>
        /// <param name="newOwner"></param>
        /// <returns></returns>
        Task<PageResponse<int>> UpdateNewOwner(NewOwnerContractDtos newOwner);
        /// <summary>
        /// 添加货主合同
        /// </summary>
        /// <param name="newOwner"></param>
        /// <returns></returns>

        Task<PageResponse<int>> Postsianjia(NewOwnerContract newOwner);

        /// <summary>
        /// 货主批量删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task<PageResponse<NewOwnerContractDto>> DeletEmoreNewOwner(string Id);
        /// <summary>
        /// 货主跟踪是否发货
        /// </summary>
        /// <param name="newOwner"></param>
        /// <returns></returns>
        Task<PageResponse<int>> UpdateFahuoNewOwner(NewOwnerContractDtos newOwner);
        /// <summary>
        /// 货主跟踪是否签收
        /// </summary>
        /// <param name="newOwner"></param>
        /// <returns></returns>
        Task<PageResponse<int>> UpdateQianShoNewOwner(NewOwnerContractDtos newOwner);
    }
}
